package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wmnews.dtos.WmNewsDto;
import com.heima.model.wmnews.dtos.WmNewsPageReqDto;
import com.heima.model.wmnews.dtos.WmNewsStatusDto;
import com.heima.model.wmnews.pojos.WmNews;

public interface WmNewsService extends IService<WmNews> {
    /**
     * 列表
     * @param dto
     * @return
     */
    public ResponseResult getList(WmNewsPageReqDto dto);
    /**
     * 提交
     */
    public ResponseResult submit(WmNewsDto dto);

    /**
     * 上架下架
     */
    public ResponseResult downOrUp(WmNewsStatusDto wmNewsStatusDto);
}
